# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               muniversal 1.0

name                    lcms2
version                 2.9
revision                1
worksrcdir              lcms2-${version}
categories              graphics
platforms               darwin
maintainers             nomaintainer
license                 MIT

description             Little Color Management System, a color matching \
                        method library (version 2)
long_description        LCMS is the Little Color Management System, a portable \
                        Color Matching Method (CMM) library which implements \
                        fast transforms between ICC profiles. \
                        Color management refers to techniques that ensure \
                        consistent color as images are transferred from \
                        scanners or cameras to monitors and printers.

homepage                http://www.littlecms.com/

master_sites            sourceforge:project/lcms/lcms/${version}/ \
                        ${homepage}

checksums               rmd160  0003ffd3561e6ed787be81b5ed7b7af52211fe19 \
                        sha256  48c6fdf98396fa245ed86e622028caf49b96fa22f3e5734f853f806fbc8e7d20

patchfiles              patch-CVE-2018-16435.diff

depends_lib             path:lib/libjpeg.dylib:jpeg \
                        port:tiff \
                        port:zlib

test.run                yes
test.target             check

livecheck.type          regex
livecheck.url           http://www.littlecms.com/download.html
livecheck.regex         "Current version is (\[A-Za-z0-9.\]+)"
